package com.demo.tx.seata.dao.mapper;

import com.demo.tx.seata.model.entity.UndoLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

/**
* @author nintendo
* @description 针对表【undo_log】的数据库操作Mapper
* @createDate 2025-04-25 09:16:56
* @Entity com.demo.tx.seata.model.entity.UndoLog
*/
public interface UndoLogMapper extends BaseMapper<UndoLog> {

    @Select("select count(*) from undo_log")
    Long count();

    @Delete("delete from undo_log")
    void deleteAll();
}




